home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
308_01
/
debug.c
< prev
next >
Wrap
Text File
|
1990-06-16
|
748b
|
36 lines
/*
HEADER: CUG308;
TITLE: debugging error message module;
DESCRIPTION: "general purpose debugging error message routines";
DATE: 5/6/90;
VERSION: 2.01;
FILENAME: DEBUG.C;
SEE-ALSO: DEBUG.H;
AUTHOR: Michael Kelly
254 Gold St. Boston Ma. 02127;
COPYRIGHT: May be used freely if authorship is acknowledged;
*/
#include <stdlib.h>
#include <stdio.h>
void err_out(const char *errmsg)
{
fprintf(stderr,"\n%s\n",errmsg);
exit(1);
}
void bug_out(const char *errmsg, const char *filename, int lineno)
{
fprintf(stderr,"\n%s\n",errmsg);
fprintf(stderr,"\tFile: %s\n",filename);
fprintf(stderr,"\tLine: %d\n",lineno);
exit(1);
}